home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 6c 70 61 63 2e |Path: ne|ws.lpac.|
|00000010| 61 63 2e 75 6b 21 75 73 | 65 6e 65 74 0a 46 72 6f |ac.uk!us|enet.Fro|
|00000020| 6d 3a 20 4b 65 6c 76 79 | 6e 20 53 63 72 75 70 70 |m: Kelvy|n Scrupp|
|00000030| 73 20 3c 6b 65 6c 76 79 | 6e 40 6c 70 61 63 2e 61 |s <kelvy|n@lpac.a|
|00000040| 63 2e 75 6b 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |c.uk>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |: comp.l|ang.c++.|
|00000060| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 44 79 6e |Subject:| Re: Dyn|
|00000070| 61 6d 69 63 20 61 6c 6c | 6f 63 20 6f 66 20 32 44 |amic all|oc of 2D|
|00000080| 20 61 72 72 61 79 3f 3f | 0a 44 61 74 65 3a 20 31 | array??|.Date: 1|
|00000090| 32 20 4d 61 72 20 31 39 | 39 36 20 32 31 3a 31 31 |2 Mar 19|96 21:11|
|000000a0| 3a 32 37 20 47 4d 54 0a | 4f 72 67 61 6e 69 7a 61 |:27 GMT.|Organiza|
|000000b0| 74 69 6f 6e 3a 20 4c 6f | 6e 64 6f 6e 20 50 61 72 |tion: Lo|ndon Par|
|000000c0| 61 6c 6c 65 6c 20 41 70 | 70 6c 69 63 61 74 69 6f |allel Ap|plicatio|
|000000d0| 6e 73 20 43 65 6e 74 72 | 65 0a 4d 65 73 73 61 67 |ns Centr|e.Messag|
|000000e0| 65 2d 49 44 3a 20 3c 34 | 69 34 70 39 76 24 6f 32 |e-ID: <4|i4p9v$o2|
|000000f0| 37 40 67 61 74 65 77 61 | 79 2e 6c 70 61 63 2e 61 |7@gatewa|y.lpac.a|
|00000100| 63 2e 75 6b 3e 0a 52 65 | 66 65 72 65 6e 63 65 73 |c.uk>.Re|ferences|
|00000110| 3a 20 3c 34 68 70 6a 62 | 6f 24 66 73 62 40 6d 61 |: <4hpjb|o$fsb@ma|
|00000120| 73 61 6c 61 2e 63 63 2e | 75 68 2e 65 64 75 3e 0a |sala.cc.|uh.edu>.|
|00000130| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000140| 74 3a 20 70 6c 75 74 6f | 2e 6c 70 61 63 2e 61 63 |t: pluto|.lpac.ac|
|00000150| 2e 75 6b 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |.uk.Mime|-Version|
|00000160| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000170| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|00000180| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|00000190| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|000001a0| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|000001b0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000001c0| 6c 61 20 31 2e 31 4e 20 | 28 58 31 31 3b 20 49 3b |la 1.1N |(X11; I;|
|000001d0| 20 49 52 49 58 20 35 2e | 32 20 49 50 32 32 29 0a | IRIX 5.|2 IP22).|
|000001e0| 54 6f 3a 20 73 75 6b 6b | 75 40 6d 65 6e 75 64 6f |To: sukk|u@menudo|
|000001f0| 2e 75 68 2e 65 64 75 0a | 58 2d 55 52 4c 3a 20 6e |.uh.edu.|X-URL: n|
|00000200| 65 77 73 3a 34 68 70 6a | 62 6f 24 66 73 62 40 6d |ews:4hpj|bo$fsb@m|
|00000210| 61 73 61 6c 61 2e 63 63 | 2e 75 68 2e 65 64 75 0a |asala.cc|.uh.edu.|
|00000220| 0a 54 68 69 73 20 69 73 | 20 61 20 70 75 7a 7a 6c |.This is| a puzzl|
|00000230| 65 72 20 61 73 20 74 68 | 65 72 65 20 64 6f 65 73 |er as th|ere does|
|00000240| 6e 27 74 20 73 65 65 6d | 20 74 6f 6f 20 6d 75 63 |n't seem| too muc|
|00000250| 68 20 77 72 6f 6e 67 20 | 77 69 74 68 20 79 6f 75 |h wrong |with you|
|00000260| 72 20 63 6f 64 65 20 66 | 72 61 67 6d 65 6e 74 0a |r code f|ragment.|
|00000270| 61 73 20 69 74 20 73 74 | 61 6e 64 73 2c 20 65 78 |as it st|ands, ex|
|00000280| 63 65 70 74 20 74 68 61 | 74 20 79 6f 75 20 61 72 |cept tha|t you ar|
|00000290| 65 20 70 65 72 68 61 70 | 73 20 74 72 79 69 6e 67 |e perhap|s trying|
|000002a0| 20 74 6f 6f 20 68 61 72 | 64 20 74 6f 20 6d 61 6b | too har|d to mak|
|000002b0| 65 20 79 6f 75 72 20 64 | 79 6e 61 6d 69 63 0a 61 |e your d|ynamic.a|
|000002c0| 72 72 61 79 20 6c 6f 6f | 6b 20 61 63 74 20 6c 69 |rray loo|k act li|
|000002d0| 6b 65 20 61 20 73 74 61 | 74 69 63 20 6f 6e 65 2e |ke a sta|tic one.|
|000002e0| 0a 0a 53 74 69 6c 6c 20 | 74 68 65 72 65 20 61 72 |..Still |there ar|
|000002f0| 65 20 32 20 70 6f 69 6e | 74 73 20 49 20 77 6f 75 |e 2 poin|ts I wou|
|00000300| 6c 64 20 6c 69 6b 65 20 | 74 6f 20 6d 61 6b 65 3a |ld like |to make:|
|00000310| 0a 0a 31 29 0a 54 6f 20 | 70 75 74 20 79 6f 75 72 |..1).To |put your|
|00000320| 20 6d 69 6e 64 20 61 74 | 20 72 65 73 74 2c 20 74 | mind at| rest, t|
|00000330| 68 65 72 65 20 64 6f 65 | 73 6e 27 74 20 73 65 65 |here doe|sn't see|
|00000340| 6d 20 61 6e 79 74 68 69 | 6e 67 20 73 79 6e 74 61 |m anythi|ng synta|
|00000350| 63 74 69 63 61 6c 6c 79 | 20 77 72 6f 6e 67 0a 77 |ctically| wrong.w|
|00000360| 69 74 68 20 79 6f 75 72 | 20 61 6c 6c 6f 63 61 74 |ith your| allocat|
|00000370| 69 6f 6e 20 61 6e 64 20 | 64 65 61 6c 6c 6f 63 61 |ion and |dealloca|
|00000380| 74 69 6f 6e 20 3a 20 74 | 68 65 20 63 6f 64 65 20 |tion : t|he code |
|00000390| 63 6f 6d 70 69 6c 65 73 | 20 61 6e 64 20 65 78 65 |compiles| and exe|
|000003a0| 63 75 74 65 73 0a 70 65 | 72 66 65 63 74 6c 79 20 |cutes.pe|rfectly |
|000003b0| 68 61 70 70 69 6c 79 20 | 6f 6e 20 6f 75 72 20 53 |happily |on our S|
|000003c0| 47 49 2c 20 73 70 61 72 | 63 73 20 61 6e 64 20 44 |GI, spar|cs and D|
|000003d0| 45 43 20 61 6c 70 68 61 | 73 2e 20 20 49 20 63 61 |EC alpha|s. I ca|
|000003e0| 6e 6e 6f 74 20 68 6f 77 | 65 76 65 72 20 76 6f 75 |nnot how|ever vou|
|000003f0| 63 68 0a 66 6f 72 20 74 | 68 65 20 6c 69 6b 65 73 |ch.for t|he likes|
|00000400| 20 6f 66 20 74 68 65 20 | 4d 61 63 20 61 6e 64 20 | of the |Mac and |
|00000410| 50 43 2e 0a 0a 43 2b 2b | 20 73 68 6f 75 6c 64 2c |PC...C++| should,|
|00000420| 20 77 69 74 68 20 61 20 | 67 6f 6f 64 20 63 6f 6d | with a |good com|
|00000430| 70 69 6c 65 72 2c 20 6b | 65 65 70 20 74 72 61 63 |piler, k|eep trac|
|00000440| 6b 20 6f 66 20 74 68 65 | 20 61 6c 6c 6f 63 61 74 |k of the| allocat|
|00000450| 65 64 20 6c 65 6e 67 74 | 68 20 6f 66 20 74 68 65 |ed lengt|h of the|
|00000460| 0a 73 74 72 69 6e 67 73 | 2c 20 68 65 72 65 20 27 |.strings|, here '|
|00000470| 79 27 20 62 79 74 65 73 | 20 6c 6f 6e 67 2c 20 61 |y' bytes| long, a|
|00000480| 6e 64 20 73 6f 20 64 65 | 61 6c 6c 6f 63 61 74 65 |nd so de|allocate|
|00000490| 20 74 68 65 20 73 70 61 | 63 65 20 63 6f 72 72 65 | the spa|ce corre|
|000004a0| 63 74 6c 79 3a 20 73 6f | 20 6c 6f 6e 67 20 61 73 |ctly: so| long as|
|000004b0| 0a 72 65 61 73 73 69 67 | 6e 6d 65 6e 74 73 20 64 |.reassig|nments d|
|000004c0| 6f 20 6e 6f 74 20 74 61 | 6b 65 20 70 6c 61 63 65 |o not ta|ke place|
|000004d0| 20 6d 65 61 6e 77 68 69 | 6c 65 2e 0a 0a 49 74 20 | meanwhi|le...It |
|000004e0| 73 68 6f 75 6c 64 20 74 | 68 65 6e 20 6e 6f 74 20 |should t|hen not |
|000004f0| 6d 61 74 74 65 72 20 77 | 68 61 74 20 68 61 73 20 |matter w|hat has |
|00000500| 61 63 74 75 61 6c 6c 79 | 20 62 65 65 6e 20 63 6f |actually| been co|
|00000510| 70 69 65 64 20 69 6e 74 | 6f 20 74 68 65 20 61 72 |pied int|o the ar|
|00000520| 72 61 79 2e 20 20 49 0a | 63 61 6e 6e 6f 74 20 74 |ray. I.|cannot t|
|00000530| 68 75 73 20 73 65 65 20 | 77 68 65 72 65 20 74 68 |hus see |where th|
|00000540| 65 20 70 72 6f 62 6c 65 | 6d 20 6c 69 65 73 2c 20 |e proble|m lies, |
|00000550| 75 6e 6c 65 73 73 20 69 | 74 20 69 73 20 65 6c 73 |unless i|t is els|
|00000560| 65 77 68 65 72 65 3a 20 | 69 2e 65 2e 20 79 6f 75 |ewhere: |i.e. you|
|00000570| 20 73 68 6f 75 6c 64 0a | 6e 6f 74 20 61 73 73 69 | should.|not assi|
|00000580| 67 6e 20 6e 65 77 20 76 | 61 6c 75 65 73 20 74 6f |gn new v|alues to|
|00000590| 20 65 2e 67 2e 20 63 69 | 74 69 65 73 5b 69 5d 2c | e.g. ci|ties[i],|
|000005a0| 20 62 75 74 20 63 6f 70 | 79 2c 20 75 73 69 6e 67 | but cop|y, using|
|000005b0| 20 73 74 72 6e 63 70 79 | 28 63 69 74 69 65 73 5b | strncpy|(cities[|
|000005c0| 69 5d 2c 0a 22 2e 2e 2e | 22 2c 79 29 20 6f 72 20 |i],."...|",y) or |
|000005d0| 73 75 63 68 20 6c 69 6b | 65 2e 20 20 41 6c 73 6f |such lik|e. Also|
|000005e0| 20 61 72 65 20 79 6f 75 | 20 73 75 72 65 20 79 6f | are you| sure yo|
|000005f0| 75 20 64 6f 6e 27 74 20 | 63 68 61 6e 67 65 20 74 |u don't |change t|
|00000600| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 78 0a 61 6e |he value| of x.an|
|00000610| 79 77 68 65 72 65 20 3f | 20 49 6d 70 6f 72 74 61 |ywhere ?| Importa|
|00000620| 6e 74 6c 79 20 69 73 20 | 79 20 61 20 73 65 6e 73 |ntly is |y a sens|
|00000630| 69 62 6c 65 20 76 61 6c | 75 65 2c 20 69 2e 65 2e |ible val|ue, i.e.|
|00000640| 20 3e 20 30 20 61 6e 64 | 20 6e 6f 74 20 27 74 6f | > 0 and| not 'to|
|00000650| 6f 20 6c 61 72 67 65 27 | 20 0a 0a 32 29 0a 0a 41 |o large'| ..2)..A|
|00000660| 73 20 61 20 70 6f 73 73 | 69 62 6c 65 20 77 61 79 |s a poss|ible way|
|00000670| 20 6f 66 20 77 6f 72 6b | 69 6e 67 20 72 6f 75 6e | of work|ing roun|
|00000680| 64 20 74 68 65 20 70 72 | 6f 62 6c 65 6d 2c 20 79 |d the pr|oblem, y|
|00000690| 6f 75 20 6d 61 79 20 77 | 69 73 68 20 74 6f 20 74 |ou may w|ish to t|
|000006a0| 61 6b 65 20 61 64 76 61 | 6e 74 61 67 65 0a 6f 66 |ake adva|ntage.of|
|000006b0| 20 74 68 65 20 66 61 63 | 74 20 74 68 61 74 20 74 | the fac|t that t|
|000006c0| 68 65 20 73 74 72 69 6e | 67 73 20 70 6f 69 6e 74 |he strin|gs point|
|000006d0| 65 64 20 74 6f 20 62 79 | 20 74 68 65 20 65 6c 65 |ed to by| the ele|
|000006e0| 6d 65 6e 74 73 20 6f 66 | 20 63 69 74 69 65 73 5b |ments of| cities[|
|000006f0| 5d 20 61 72 65 0a 74 68 | 65 6d 73 65 6c 76 65 73 |] are.th|emselves|
|00000700| 20 64 79 6e 61 6d 69 63 | 20 61 6e 64 20 6e 65 65 | dynamic| and nee|
|00000710| 64 20 6e 6f 74 20 6c 69 | 65 20 63 6f 6e 73 65 71 |d not li|e conseq|
|00000720| 75 65 74 69 76 65 6c 79 | 20 69 6e 20 6d 65 6d 6f |uetively| in memo|
|00000730| 72 79 3a 20 74 68 69 73 | 20 69 73 20 6f 6e 65 20 |ry: this| is one |
|00000740| 6f 66 0a 74 68 65 20 61 | 64 76 61 6e 74 61 67 65 |of.the a|dvantage|
|00000750| 73 20 6f 76 65 72 20 61 | 20 73 74 61 74 69 63 20 |s over a| static |
|00000760| 61 72 72 61 79 2c 20 77 | 68 65 72 65 20 74 68 65 |array, w|here the|
|00000770| 20 65 6c 65 6d 65 6e 74 | 73 20 61 72 65 20 61 6c | element|s are al|
|00000780| 6c 20 61 6c 6c 6f 63 61 | 74 65 64 20 69 6e 20 61 |l alloca|ted in a|
|00000790| 0a 73 69 6e 67 6c 65 20 | 62 6c 6f 63 6b 2e 20 20 |.single |block. |
|000007a0| 59 6f 75 20 64 6f 20 6e | 6f 74 20 6e 65 65 64 20 |You do n|ot need |
|000007b0| 74 6f 20 61 6c 6c 6f 63 | 61 74 65 20 73 70 61 63 |to alloc|ate spac|
|000007c0| 65 20 66 6f 72 20 74 68 | 65 20 73 74 72 69 6e 67 |e for th|e string|
|000007d0| 73 20 61 74 20 61 6c 6c | 20 75 6e 74 69 6c 0a 74 |s at all| until.t|
|000007e0| 68 65 20 70 6f 69 6e 74 | 20 77 68 65 72 65 20 74 |he point| where t|
|000007f0| 68 65 20 63 6f 70 79 69 | 6e 67 20 69 73 20 74 6f |he copyi|ng is to|
|00000800| 20 74 61 6b 65 20 70 6c | 61 63 65 2e 20 20 4f 74 | take pl|ace. Ot|
|00000810| 68 65 72 77 69 73 65 20 | 69 74 20 69 73 20 61 20 |herwise |it is a |
|00000820| 67 6f 6f 64 20 69 64 65 | 61 20 74 6f 0a 73 65 74 |good ide|a to.set|
|00000830| 20 74 68 65 20 65 6c 65 | 6d 65 6e 74 73 20 74 6f | the ele|ments to|
|00000840| 20 4e 55 4c 4c 2e 20 20 | 59 6f 75 20 74 68 65 6e | NULL. |You then|
|00000850| 20 68 61 76 65 20 61 20 | 6e 65 61 74 20 63 68 65 | have a |neat che|
|00000860| 63 6b 20 6f 6e 20 77 68 | 65 74 68 65 72 20 74 68 |ck on wh|ether th|
|00000870| 65 20 73 74 72 69 6e 67 | 20 69 73 0a 75 73 65 64 |e string| is.used|
|00000880| 20 61 6e 64 20 73 6f 20 | 77 68 65 74 68 65 72 20 | and so |whether |
|00000890| 74 6f 20 62 6f 74 68 65 | 72 20 64 65 61 6c 6c 6f |to bothe|r deallo|
|000008a0| 63 61 74 69 6e 67 2e 0a | 0a 49 20 65 6e 76 69 73 |cating..|.I envis|
|000008b0| 61 67 65 20 73 6f 6d 65 | 74 68 69 6e 67 20 6c 69 |age some|thing li|
|000008c0| 6b 65 3a 0a 0a 20 20 20 | 20 2f 2f 20 61 6c 6c 6f |ke:.. | // allo|
|000008d0| 63 61 74 69 6f 6e 0a 20 | 20 20 20 63 68 61 72 2a |cation. | char*|
|000008e0| 2a 20 63 69 74 69 65 73 | 3b 0a 20 20 20 20 63 69 |* cities|;. ci|
|000008f0| 74 69 65 73 20 3d 20 6e | 65 77 20 63 68 61 72 20 |ties = n|ew char |
|00000900| 2a 5b 78 5d 3b 0a 20 20 | 20 20 0a 20 20 20 20 2f |*[x];. | . /|
|00000910| 2f 20 73 65 74 20 74 68 | 65 20 65 6c 65 6d 65 6e |/ set th|e elemen|
|00000920| 74 73 20 74 6f 20 7a 65 | 72 6f 20 20 20 0a 20 20 |ts to ze|ro . |
|00000930| 20 20 66 6f 72 28 69 3d | 30 3b 20 69 3c 78 3b 20 | for(i=|0; i<x; |
|00000940| 69 2b 2b 29 0a 09 20 20 | 20 20 63 69 74 69 65 73 |i++).. | cities|
|00000950| 5b 69 5d 20 3d 20 4e 55 | 4c 4c 3b 0a 0a 2e 2e 0a |[i] = NU|LL;.....|
|00000960| 20 20 20 2f 2f 20 63 6f | 70 79 20 74 69 6d 65 3a | // co|py time:|
|00000970| 20 61 20 69 73 20 30 20 | 74 6f 20 78 20 2d 31 2c | a is 0 |to x -1,|
|00000980| 20 73 72 63 5f 73 74 72 | 69 6e 67 20 69 73 20 74 | src_str|ing is t|
|00000990| 68 65 20 73 74 69 6e 67 | 20 74 6f 20 62 65 20 63 |he sting| to be c|
|000009a0| 6f 70 69 65 64 0a 20 20 | 20 63 69 74 69 65 73 5b |opied. | cities[|
|000009b0| 61 5d 20 3d 20 6e 65 77 | 20 63 68 61 72 20 5b 73 |a] = new| char [s|
|000009c0| 74 72 6c 65 6e 28 73 72 | 63 5f 73 74 72 69 6e 67 |trlen(sr|c_string|
|000009d0| 29 5d 3b 0a 20 20 20 73 | 74 72 63 70 79 28 63 69 |)];. s|trcpy(ci|
|000009e0| 74 69 65 73 5b 61 5d 2c | 20 73 72 63 5f 73 74 72 |ties[a],| src_str|
|000009f0| 69 6e 67 29 3b 0a 0a 20 | 20 20 2f 2f 20 69 66 20 |ing);.. | // if |
|00000a00| 79 6f 75 72 20 6c 69 62 | 72 61 72 79 20 68 61 73 |your lib|rary has|
|00000a10| 20 69 74 2c 20 75 73 65 | 20 73 74 72 64 75 70 2c | it, use| strdup,|
|00000a20| 20 77 68 69 63 68 20 61 | 6c 6c 6f 63 61 74 65 73 | which a|llocates|
|00000a30| 20 61 6e 64 20 63 6f 70 | 69 65 73 20 69 6e 20 6f | and cop|ies in o|
|00000a40| 6e 65 0a 20 20 20 63 69 | 74 69 65 73 5b 61 5d 20 |ne. ci|ties[a] |
|00000a50| 3d 20 73 74 72 64 75 70 | 28 73 72 63 5f 73 74 72 |= strdup|(src_str|
|00000a60| 69 6e 67 29 3b 0a 0a 20 | 20 20 2f 2f 20 61 6c 74 |ing);.. | // alt|
|00000a70| 65 72 6e 61 74 69 76 65 | 6c 79 20 69 66 20 79 6f |ernative|ly if yo|
|00000a80| 75 20 61 72 65 20 77 65 | 64 64 65 64 20 74 6f 20 |u are we|dded to |
|00000a90| 68 61 76 69 6e 67 20 74 | 68 65 20 63 69 74 69 65 |having t|he citie|
|00000aa0| 73 20 6f 66 20 66 69 78 | 65 64 20 6c 65 6e 67 74 |s of fix|ed lengt|
|00000ab0| 68 0a 20 20 20 63 69 74 | 69 65 73 5b 61 5d 20 3d |h. cit|ies[a] =|
|00000ac0| 20 6e 65 77 20 63 68 61 | 72 20 5b 79 5d 3b 0a 20 | new cha|r [y];. |
|00000ad0| 20 20 73 74 72 6e 63 70 | 79 28 63 69 74 69 65 73 | strncp|y(cities|
|00000ae0| 5b 61 5d 2c 20 73 72 63 | 5f 73 74 72 69 6e 67 2c |[a], src|_string,|
|00000af0| 79 29 3b 0a 0a 2e 2e 0a | 0a 20 20 20 2f 2f 20 64 |y);.....|. // d|
|00000b00| 65 6c 65 74 69 6f 6e 0a | 20 20 20 66 6f 72 28 69 |eletion.| for(i|
|00000b10| 3d 30 3b 20 69 3c 78 3b | 20 69 2b 2b 29 0a 20 20 |=0; i<x;| i++). |
|00000b20| 20 20 20 20 20 69 66 20 | 28 63 69 74 69 65 73 5b | if |(cities[|
|00000b30| 69 5d 29 20 20 2f 2f 20 | 6f 6e 6c 79 20 64 65 6c |i]) // |only del|
|00000b40| 65 74 65 20 69 66 20 61 | 6c 6c 6f 63 61 74 65 64 |ete if a|llocated|
|00000b50| 0a 09 09 64 65 6c 65 74 | 65 20 5b 5d 20 63 69 74 |...delet|e [] cit|
|00000b60| 69 65 73 5b 69 5d 3b 0a | 0a 20 20 20 64 65 6c 65 |ies[i];.|. dele|
|00000b70| 74 65 20 5b 5d 20 63 69 | 74 69 65 73 3b 20 20 0a |te [] ci|ties; .|
|00000b80| 0a 0a 53 6f 72 72 79 3a | 20 4e 6f 74 20 61 20 67 |..Sorry:| Not a g|
|00000b90| 72 65 61 74 20 68 65 6c | 70 20 61 6e 64 20 61 20 |reat hel|p and a |
|00000ba0| 6c 69 74 74 6c 65 20 70 | 61 74 72 6f 6e 69 73 69 |little p|atronisi|
|00000bb0| 6e 67 20 6d 61 79 62 65 | 2e 20 20 49 66 20 61 6e |ng maybe|. If an|
|00000bc0| 79 6f 6e 65 20 63 61 6e | 20 73 65 65 20 61 6e 79 |yone can| see any|
|00000bd0| 0a 6d 61 6a 6f 72 20 66 | 6c 61 77 73 20 49 27 64 |.major f|laws I'd|
|00000be0| 20 62 65 20 69 6e 74 65 | 72 65 73 74 65 64 2e 0a | be inte|rested..|
|00000bf0| 0a 3a 2a 29 0a 0a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.:*)...-|--------|
|00000c00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 4b 65 6c 76 79 6e |--------|-.Kelvyn|
|00000c40| 20 53 63 72 75 70 70 73 | 09 09 09 09 09 6b 65 6c | Scrupps|.....kel|
|00000c50| 76 79 6e 40 6c 70 61 63 | 2e 61 63 2e 75 6b 20 0a |vyn@lpac|.ac.uk .|
|00000c60| 4c 50 41 43 2c 20 51 4d | 57 2c 20 4d 69 6c 65 20 |LPAC, QM|W, Mile |
|00000c70| 45 6e 64 2c 20 4c 6f 6e | 64 6f 6e 20 45 31 20 34 |End, Lon|don E1 4|
|00000c80| 4e 53 09 09 28 30 31 37 | 31 29 20 37 37 35 20 33 |NS..(017|1) 775 3|
|00000c90| 32 33 34 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |234.----|--------|
|00000ca0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cd0| 2d 2d 2d 2d 2d 2d 0a 0a | |------..| |
+--------+-------------------------+-------------------------+--------+--------+